package com.kayden.ioc.controller;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
//@Service
@ResponseBody
public class UserController {

    @RequestMapping("/hello")
    public  String hello(){
        return "测试Controller和Service的区别";
    }

}
